home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000236_news@newsmaster….columbia.edu _Wed Oct 28 16:10:23 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA24855
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 28 Oct 1998 16:10:23 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA10589
  7.     for kermit.misc@watsun; Wed, 28 Oct 1998 16:10:22 -0500 (EST)
  8. Path: news.columbia.edu!panix!howland.erols.net!Supernews73!supernews.com!Supernews69!not-for-mail
  9. From: "Michael Rose" <mike@tegris.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: sending variables on the command line
  12. Date: Wed, 28 Oct 1998 13:06:51 -0800
  13. Organization: http://www.supernews.com, The World's Usenet: Discussions Start Here
  14. Lines: 24
  15. Message-ID: <71810c$31v$1@supernews.com>
  16. NNTP-Posting-Host: 207.153.137.197
  17. X-Trace: 909608780 C4TGOY8WA89C5CF99C usenet53.supernews.com
  18. X-Complaints-To: newsabuse@supernews.com
  19. X-Newsreader: Microsoft Outlook Express 4.72.3110.5
  20. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  21. Xref: news.columbia.edu comp.protocols.kermit.misc:9436
  22.  
  23. I have a script that I would like to send variables from the command prompt.
  24.  
  25. kermit  script-name  variable1  variable2  variable3 variable4
  26.  
  27. $kermit maillogs 10.2.2.14 joebloe joepasswd maillog
  28.  
  29. This script logs into our Linux box and then excutes a script called maillog
  30. which mails us a log of a number of services.
  31.  
  32. I already have the script written and works great when I execute
  33.  
  34. $kermit maillogs
  35.  
  36. It ask us for the ip address, username, password and the script to execute
  37. but what I want it to do is accept these variables from the command prompt
  38. so I can then incorporate this into our database.
  39.  
  40. Any help would be greatly appreciated.
  41.  
  42. Regards,
  43.  
  44. Michael Rose
  45.  
  46.